package com.cloudkinto.bo.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author long
 */
@Data
public class NotificationAddBo {

    @ApiModelProperty("通知类型")
    @NotNull(message = "通知类型不可为空")
    private Integer type;

    @ApiModelProperty("通知标题")
    @NotNull(message = "标题不可为空")
    private String title;

    @ApiModelProperty("通知内容")
    @NotNull(message = "内容不可为空")
    private String content;

    @ApiModelProperty("通知开始时间")
    @NotNull(message = "开始时间不可为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+9")
    private Date startTime;

    @ApiModelProperty("通知结束时间")
    @NotNull(message = "结束时间不可为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+9")
    private Date endTime;

    @ApiModelProperty("发布状态")
    @NotNull(message = "截止时间不可为空")
    private Integer status;

}
